<input type="file" (change)="onFileChanged($event)">

      <button (click)="onUpload()">上传</button>